<?php 
	$data['menu'] = 'group';
	$data['title'] = '权限角色';
	$data['csses'] = array('css/acl.css');
	$data['jses'] = array('js/acl.js');
	$this->load->view('manager/inc/header',$data);
?>
<!-- 操作按钮 开始 -->
<div class="listTab">
	<span class="left"><a class="aButton" name="add" href="javascript:addGroups()">新增权限分组</a></span>
</div>
<!-- 操作按钮 结束 -->
<!-- 列表 开始 -->
<div class="listTable">
<table border="0" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<td width="100">权限组名</td>
			<td width="100">操作</td>
			<td width="100">权限组名</td>
			<td width="100">操作</td>
			<td width="100">权限组名</td>
			<td width="100">操作</td>
			<td width="100">权限组名</td>
			<td width="100">操作</td>
		</tr>
	</thead>
	<tbody id="groups">
	<?php if(!empty($list)){?>
		<tr>
		  <?php $i=0;?>
		  <?php foreach($list as $k=>$v):?>
	      <?php if($i!=0 && $i%4 == 0):?>
		</tr><tr>
	   	  <?php endif;?>
		<td><span><?php echo $v['name'];?></span></td>
		<td>
			<span class="opBtnList">
			<span class="opBtn" >操作</span>
					<ul>
					   <?php if($v['utype']!=0&&$v['utype']!=1):?>
						<li>
							<a href="javascript:deleteGroups(<?php echo$v['groupid'];?>)"  id="<?php echo$v['groupid'];?>" >删除</a>
						</li>
	
						<li>
	                   	 	<a href="javascript:editGroups(<?php echo$v['groupid'];?>)" id="<?php echo$v['groupid'];?>" >修改</a>
	                    </li>
	                    <?php endif;?>
	                    <li>
	                   	 	<a href="javascript:lookGroupPermission(<?php echo$v['groupid'];?>)" id="<?php echo$v['groupid'];?>" >设置组权限</a>
	                    </li>
	              	</ul>
			</span>
	
		 </td>
		 <?php $i = $i + 1;?>
	     <?php endforeach;?>
			<?php }else{ ?>
				<tr>
				  <td colspan="8"><span>暂无数据</span></td>
				</tr>
			<?php }?>
		</tr>
	</tbody>
</table>
</div>
<?php $this->load->view('manager/inc/footer');?>